package homework3;

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("----------" + "欢迎使用超市管理系统" + "----------");
        ArrayList<Goods> list = new ArrayList<>();
        Init init = new Init();
        ArrayList<Goods> init1 = init.Init(list);
        init.showMeun();//展示菜单
        Scanner sc = new Scanner(System.in);
        int sc1=sc.nextInt();
            switch (sc1) {
                case 1:
                    init.ShowGoods(init1);
                    break;
                case 2:
                    init.jieSuan();
                    break;
                case 3:
                    init.huanying();
                    break;
                default:
                    System.out.println("输入的序号不存在哦~~~~");
                    break;
            }
        }
    }